﻿using Model;

namespace IBLL
{
    public interface IUserBLL
    {
        /// <summary>
        /// 注册
        /// </summary>
        /// <param name="m">用户信息表</param>
        /// <returns></returns>
        Task<int> AddA(Logth m);
        /// <summary>
        /// 登录
        /// </summary>
        /// <param name="acction">用户名</param>
        /// <param name="pwd">密码</param>
        /// <returns></returns>
        Logth Logth(string acction,string pwd);
        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="m">房态信息表</param>
        /// <returns></returns>
        Task<int> Add(User m);
        /// <summary>
        /// 显示
        /// </summary>
        /// <param name="PageIndex">当前页</param>
        /// <param name="PageSize">页容量</param>
        /// <param name="name">房态名称</param>
        /// <param name="num">房态编号</param>
        /// <returns></returns>
        ShowDTO Show(int PageIndex,int PageSize,string? name,int? num);
        /// <summary>
        /// 删除逻辑
        /// </summary>
        /// <param name="uid">主键id</param>
        /// <returns></returns>
        Task<int> del(int uid);
    }
}
